]> dgit.raspbian.org Git - gnome-shell.git/commit
popupMenu: Overwrite ongoing animations when calling close repeatedly
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 19 Oct 2012 21:13:16 +0000 (23:13 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 23 Oct 2012 20:21:45 +0000 (22:21 +0200)
commit98b313c75fcbb08c5ada3d2088b59ec00b9d4aab
treef0c48457653788c5ae80a1310c7459223c4a1ea2
parent8b796d80a7eaf154afa43684633b0bd8d50a8985
popupMenu: Overwrite ongoing animations when calling close repeatedly

Currently close() is a no-op when the menu has already been closed.
However, repeated calls could pass different animation parameters.
For instance in the user menu, we try to hide the menu immediately
before locking the screen, to avoid the popup jumping across the
screen while fading out - as we do this from the corresponding
item's activate handler, the closing is still animated if the menu's
own handler (which requests a full animation) is run first.
Fix this by changing close() to overwrite ongoing animations before
bailing out early.

https://bugzilla.gnome.org/show_bug.cgi?id=686484
js/ui/boxpointer.js
js/ui/popupMenu.js